/*
    Project:        Home Power Control
    File:           HPCButton.cpp
    Author:         christian@karunamusic.at
    Date:           01.2015
    Description:    Simple class to cover a button.
 */

#ifndef HPCBUTTON_H
#define HPCBUTTON_H

#include <HPCSensor.h>

class HPCButton : public HPCSensor
{
    Q_OBJECT
public:
    /** \brief Constructor
     *
     * \param name name of the sensor.
     * \param id database id of the sensor.
     * \param pin GPIO pin number.
     */
    HPCButton( const QString& name, quint32 id, quint8 pin );
    /** \brief Destructor.
     */
    virtual ~HPCButton();

protected:
    /** \brief Get a value from the sensor.
     */
    virtual void Measure();
};

#endif // HPCBUTTON_H
